package BLL;

import DAL.RoleDAL;
import Entities.TblRoles;
import java.util.List;

public class RoleBLL {

    public RoleDAL dalObj;

    public boolean add(TblRoles obj){
        dalObj = new RoleDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblRoles obj){
        dalObj = new RoleDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblRoles obj){
        dalObj = new RoleDAL();
        return dalObj.delete(obj);
    }

    public TblRoles getById(int id){
        dalObj = new RoleDAL();
        return dalObj.getById(id);
    }

    public List<TblRoles> getAll(){
        dalObj = new RoleDAL();
        return dalObj.getAll();
    }
}
